<?php /* Smarty version 2.6.19, created on 2013-02-27 17:30:25
         compiled from C:%5Cxampp%5Chtdocs%5Cudeal.in/Interfaces/templates/admin/seo/view_edit_seo.tpl */ ?>
<?php echo '
<script language="javascript">
function trim(stringToTrim)
{
  return stringToTrim.replace(/^\\s+|\\s+$/g,"");
}
function is_validate()
{
   if(trim(document.frmPageTitle.name.value) == \'\')
   {
		alert("Enter page name ");
		document.frmPageTitle.name.focus();
		return false;
   }


   if(trim(document.frmPageTitle.title.value) == \'\')
   {
		alert("Enter page title ");
		document.frmPageTitle.title.focus();
		return false;
   }

   if(trim(document.frmPageTitle.keywords.value) == \'\')
   {
		alert("Enter page keyword ");
		document.frmPageTitle.keywords.focus();
		return false;
   }

   if(trim(document.frmPageTitle.description.value) == \'\')
   {
		alert("Enter page description ");
		document.frmPageTitle.description.focus();
		return false;
   }	


   return true;
}
</script>
'; ?>

<form name="frmPageTitle" action="<?php echo $this->_tpl_vars['site_path']; ?>
/admin/seo/update_seo" method="post" onsubmit="javascript:return is_validate();">
<input type="hidden" name="seo[id]" value="<?php echo $this->_tpl_vars['seo']->getId(); ?>
" />
<table width="100%" border="0" cellspacing="2" cellpadding="6">
  <tr>
    <td align="right" valign="top">Page Name</td>
	 <td><input type="text" name="seo[page]" id="seo_page" value="<?php echo $this->_tpl_vars['seo']->getPage(); ?>
" class="input1 width100" size="41"/></td>
  </tr>
 
  </tr>
  <tr>
    <td align="right" valign="top">Meta Title</td>
	 <td><input type="text" name="seo[meta_title]" id="seo_meta_title" value="<?php echo $this->_tpl_vars['seo']->getMetaTitle(); ?>
" class="input1 width100" size="41" /></td>
  </tr>
 
  <tr>
	  <td align="right" valign="top">Meta Keywords</td>
	  <td><textarea name="seo[meta_keywords]" cols="47" rows="3" id="seo_meta_keywords" class=" width100"><?php echo $this->_tpl_vars['seo']->getMetaKeywords(); ?>
</textarea></td>
  </tr>
   <tr>
	  <td align="right" valign="top">Meta Description</td>
	  <td><textarea name="seo[meta_description]"  cols="47" rows="3" class="width100" id="seo_meta_description"><?php echo $this->_tpl_vars['seo']->getMetaDescription(); ?>
</textarea>
    </td>
  <tr>
    <td></td>
    <td><input type="submit" name="submit" value="Update" class="button1"/>
      <input type="button" name="button" id="button" value="Cancel" onClick="javascript: window.parent.tb_remove();" class="button1"></td>
  </tr>
</table>
</form>
